* Makefile.in (xmakefile): Recognize the -O option with a numeric
authorJim Blandy <jimb@redhat.com>
Sat, 10 Apr 1993 08:31:28 +0000 (08:31 +0000)
committerJim Blandy <jimb@redhat.com>
Sat, 10 Apr 1993 08:31:28 +0000 (08:31 +0000)
optimization level.

* ymakefile (C_DEBUG_SWITCH): If we're using version 2 of GCC or
higher, use -O99 instead of plain -O.

src/Makefile.in

index 2c7fad192e5fda5c8c5ef968f1ad5980b7ee6eaf..5f0afca50c3d946ef3903024e85180b246400001 100644 (file)
@@ -75,7 +75,7 @@ xmakefile: ymakefile config.h
        ${CPP} ${CFLAGS} junk.c > junk.cpp \
        -DC_SWITCH_SITE="`echo ${CFLAGS}' ' \
                          | sed -e 's/-g /C_DEBUG_SWITCH /' \
-                               -e 's/-O /C_OPTIMIZE_SWITCH /'`"
+                               -e 's/-O[0-9]* /C_OPTIMIZE_SWITCH /'`"
        < junk.cpp                                      \
        sed     -e 's/^#.*//'                           \
                -e 's/^[ \f\t][ \f\t]*$$//'             \